package com.likeyichu.webservice.app;

import java.util.HashSet;
import java.util.Set;

import org.glassfish.jersey.jackson.JacksonFeature;
import org.glassfish.jersey.server.ResourceConfig;

public class App extends ResourceConfig {
	public App() {
		// 向jersey框架注册资源类，凡完全限定名是以指定字符串开头的类，都将包含
		packages("com.likeyichu.webservice.resource");
		register(JacksonFeature.class);
		Set<Class<?>> resources = new HashSet();
	    resources.add(io.swagger.jaxrs.listing.ApiListingResource.class);
        resources.add(io.swagger.jaxrs.listing.SwaggerSerializers.class);
		//registerClasses(resources);
	}
}
